package com.course01.orderbackend.dto;


import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;

public class OrderItemDTO {
    //菜品id不能为空
    @NotBlank(message="菜品Id不能为空")
    private String menuId;

    //菜品数量至少一份最多十份
    @Min(value=1,message="请选择单道菜品一份")
    @Max(value=10,message="请选择最多十份菜品")
    private Integer quality;
}
